    <div class="footer1">
        <ul>
            <li class="Index"><a href="{:U('index/index')}">首页</a></li>
            <li class="Used"><a href="{:U('used/index')}">房源</a></li>
            <li class="Cust"><a href="{:U('cust/index')}">客源</a></li>
            <li class="Msg"><a href="{:U('msg/index')}">消息</a></li>
            <li class="My"><a href="{:U('my/index')}">我的</a></li>
        </ul>
    </div>
</body>
    <script>
        $(function(){
            var class_ = "{$Think.CONTROLLER_NAME }";
            $('.on').removeClass('on');
            $("."+class_).addClass('on');
        });
        $('.footer1 li').click (function (){
            $('.on').removeClass('on');
            $(this).addClass('on');
        });
    </script>
</html>